function getReplyInfoApi(topicId,params){
    return $axios({
        'url': `/reply/${topicId}`,
        'method': 'get',
        params
    })
}

function getUserInfoApi(userId){
    return $axios({
        'url': `/user/${userId}`,
        'method': 'get',
    })
}

function getTopicInfoApi(topicId){
    return $axios({
        'url': `/topic/${topicId}`,
        'method': 'get',
    })
}

function editTopic(data){
    return $axios({
        'url': `/topic/edit`,
        'method': 'post',
        data
    })
}
function editReply(data){
    return $axios({
        'url': `/reply/edit`,
        'method': 'post',
        data
    })
}
function addReply(data){
    return $axios({
        'url': `/reply/add`,
        'method': 'post',
        data
    })
}
function deleteReplyApi(replyId){
    return $axios({
        'url': `/reply/delete/${replyId}`,
        'method': 'get',
    })
}
function deleteTopicApi(topicId){
    return $axios({
        'url': `/topic/delete/${topicId}`,
        'method': 'get',
    })
}